-- GENERATED SPELL FOR [Spitelash Serpent Guard] --


function spell0_6194(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6194', 8330, 1)
end

function spell1_6194(pUnit, Event) --@Polymorph Backfire,n/a--
pUnit:FullCastSpellOnTarget(28406,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6194', 8323, 1)
end

function Sorts_6194(pUnit, Event)
local choix_sorts_6194 = math.random(0, 1)
if choix_sorts_6194 == 0 then
pUnit:RegisterEvent('spell0_6194', 1, 1)
end
if choix_sorts_6194 == 1 then
pUnit:RegisterEvent('spell1_6194', 1, 1)
end
end

function mob6194_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6194', math.random(1500, 3000), 1)
end

function mob6194_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6194_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6194_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6194, 1, 'mob6194_Action')
RegisterUnitEvent(6194, 2, 'mob6194_Leave')
RegisterUnitEvent(6194, 3, 'mob6194_Kill')
RegisterUnitEvent(6194, 4, 'mob6194_Die')
